package com.mc.lp.shared.vo;

import java.util.Arrays;
import java.util.List;

import com.mc.lp.shared.vo.cache.ICacheVO;
/**
 * value object get role and permission detail of an user
 * @author deepak
 *
 */
public class RoleVO implements ICacheVO<Long, String>{
	private static final long serialVersionUID = 1L;
	private Long id;
	private String roleName;
	private List<PermissionVO> permissions;
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getRoleName() {
		return roleName;
	}
	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}
	public List<PermissionVO> getPermissions() {
		return permissions;
	}
	public void setPermissions(List<PermissionVO> permissions) {
		this.permissions = permissions;
	}
	public Long getKey() {
		return id;
	}
	public List<String> getSearchableProperties() {
		return Arrays.asList(this.roleName);
	}	
}
